//
//  AdMobModel.m
//  WeCommunity
//
//  Created by mac on 2017/7/14.
//  Copyright © 2017年 lzy. All rights reserved.
//

#import "AdMobModel.h"

@interface AdMobModel ()

@end

@implementation AdMobModel

-(GADBannerView *)m_gadBannerView
{
    if (!_m_gadBannerView) {
        
        CGFloat height = KScreen_Width;
        if (IS_IPAD) {
            height = KScreen_Width * 0.8;
        }
        _m_gadBannerView = [[GADBannerView alloc] initWithFrame:CGRectMake(0, 0,KScreen_Width ,height)];
        
        self.loadEnd = NO;
    }
    return _m_gadBannerView;
}

- (void)adViewDidReceiveAd:(GADBannerView *)bannerView
{
    if (self.m_activityIndicator) {
        [self.m_activityIndicator stopAnimating];
    }
    self.loadEnd = YES;
}

@end
